import { defineStore } from 'pinia'

interface IForm {
  // 位置
  insertNamePosition: '0' | '1' | '2'
  // 第..个字符后
  insertNameAfterCharacter: number
  // 插入内容
  insertNameContent: string | undefined
}

const useInsertNameFormStore = defineStore('insertNameForm', {
  state(): IForm {
    return {
      insertNamePosition: '1',
      insertNameAfterCharacter: 0,
      insertNameContent: undefined
    }
  }
})

export default useInsertNameFormStore
